package com.hgb.mall.portal.config;

import com.hgb.mall.common.config.BaseSwaggerConfig;
import com.hgb.mall.common.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig extends BaseSwaggerConfig {
    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                                .apiBasePackage("com.hgb.mall.portal.controller")
                                .title("mall前台系统")
                                .description("mall前台相关接口文档")
                                .contactName("hgb")
                                .version("1.0")
                                .enableSecurity(true)
                                .build();
    }
}
